package zjitc.net.utils;

import com.mchange.v2.c3p0.C3P0ProxyConnection;
import org.junit.Test;
import zjitc.net.utils.utils.C3P0Utils;
import zjitc.net.utils.utils.Dbutils;

import java.sql.Connection;
import java.sql.SQLException;

public class DbutilsTest {

        @Test
        public void testgetconnection(){
            try {
                Connection connection=Dbutils.getConnection();
                System.out.println(connection);
            } catch (SQLException e) {
                e.printStackTrace();
            }


        }
    @Test
    public void getConnection() throws Exception{
            Connection connection=C3P0Utils.getConnection();
            System.out.println(connection);


    }

}